﻿@using Microsoft.Extensions.Logging
@inject ILogger<Error> Logger

<CascadingValue Value="this">
	@ChildContent
</CascadingValue>

@code {

	[Parameter]
	public RenderFragment ChildContent { get; set; }

	public void ProcessError(Exception ex)
	{
		Logger.LogError("Error:ProcessError - Type: {Type} Message: {Message}",
			ex.GetType(), ex.Message);
	}

}
